import { type RouteRecordRaw } from 'vue-router';

export const configRoutes: RouteRecordRaw[] = [
  {
    path: '/config',
    name: 'config',
    meta: { title: '配置管理', icon: 'list' },
    children: [
      {
        path: 'project',
        name: 'project',
        meta: { title: '项目管理' },
        component: () => import('@/views/config/project/Index.vue'),
      },
      {
        path: 'alertLevel',
        name: 'alertLevel',
        meta: { title: '预警等级配置' },
        component: () => import('@/views/config/alertLevel/Index.vue'),
      },
      {
        path: 'messagePush',
        name: 'messagePush',
        meta: { title: '消息推送配置' },
        component: () => import('@/views/config/messagePush/Index.vue'),
      },
      {
        path: 'upgradePackage',
        name: 'upgradePackage',
        meta: { title: '升级包配置' },
        component: () => import('@/views/config/upgradePackage/Index.vue'),
      },
    ],
  },
];
